import { axios } from '@/utils/request'

export function listAll (parameter) {
  return axios({
    url: '/user/listAll',
    method: 'post',
    data: parameter
  })
}

export function listAllJudge (parameter) {
  return axios({
    url: '/user/listAllJudge',
    method: 'post',
    data: parameter
  })
}

export function addJudge (parameter) {
  return axios({
    url: '/user/addJudge',
    method: 'post',
    data: parameter
  })
}

export function editJudge (parameter) {
  return axios({
    url: '/user/updateJudge',
    method: 'post',
    data: parameter
  })
}

export function removeJudge (parameter) {
  return axios({
    url: '/user/removeJudge',
    method: 'post',
    data: parameter
  })
}

export function validatePhone (parameter) {
  return axios({
    url: '/user/validatePhone',
    method: 'post',
    data: parameter
  })
}
